/* General Styles */
:root {
  /* --primary-color: #00264d;     藏蓝色主题色 */
  --primary-color: #8B1A1A;     /* 深红色主题色 */
  --secondary-color: #FFB3B3;   /* 浅红色 */
  --accent-color: #D7263D;      /* 鲜红色强调色 */
  --text-color: #333;
  --light-bg: #f4f4f4;
  --white: #ffffff;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2vw;
  background: rgba(139,26,26,0); /* 初始透明 */
  color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1);
  min-width: 0;
  width: 100vw;
  box-sizing: border-box;
}

.navbar.scrolled {
  background: var(--primary-color);
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 0;
}

.navbar .logo i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.navbar .nav-links {
  display: flex;
  flex: 1 1 0%;
  justify-content: center;
  gap: 2vw;
  min-width: 0;
  flex-wrap: wrap;
  overflow: hidden;
}

.navbar .nav-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.navbar .nav-links a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.navbar .book-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 1vw;
  box-sizing: border-box;
  flex-shrink: 0;
}

.navbar .book-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  flex-shrink: 0;
}

.menu-toggle i {
  pointer-events: none;
}

@media (max-width: 900px) {
  .navbar {
    grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);
  }
  .navbar .nav-links {
    gap: 1vw;
  }
  .navbar .book-btn {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    margin-left: 0.5vw;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
  }
  .navbar .nav-links {
    display: none;
  }
  .navbar .book-btn {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
    margin-left: 0.2vw;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('../assets/照片/沧州市区/古楼(夜晚).webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.primary-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.outline-btn {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.outline-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.secondary-btn {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 38, 77, 0.15);
  cursor: pointer;
  transition: background 1s cubic-bezier(0.4,0,0.2,1), color 0.3s, transform 0.2s, box-shadow 0.3s;
  letter-spacing: 1px;
}

.secondary-btn:hover {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--secondary-color);
  transform: translateY(-3px) scale(1.05);
  /* box-shadow: 0 12px 32px 0 rgba(0,38,77,1); */
  box-shadow: 0 12px 32px 0 #8B1A1A; /* 偏红色阴影 */
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
}

/* History Section */
.history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.history-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-text {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Attractions Section */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.attraction-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.attraction-img {
  position: relative;
  height: 250px;
}

.attraction-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attraction-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: var(--white);
}

.attraction-content {
  padding: 1.5rem;
  text-align: center;
}

/* Culture Section */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.culture-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.culture-item:hover {
  transform: translateY(-5px);
}

.culture-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* 固定留言输入框大小，禁止拉伸 */
textarea#message {
  resize: none;
  width: 100%;
  height: 100px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-info i {
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.footer-social a {
  color: var(--white);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-element.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 从左侧滑入 */
.animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.animate-left.animate {
  opacity: 1;
  transform: translateX(0);
}

/* 从右侧滑入 */
.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.animate-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* 放大显示 */
.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

.animate-scale.animate {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }
  
  .history-content {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}
